package com.xnew.bean.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.HashMap;
import java.util.Map;

/**
    * 会员机构部门信息表
    */
@TableName(" el_org_dept_info")
public class OrgDeptInfo {
    /**
    * 部门编号
    */
    @TableId
    private String deptNo;

    /**
    * 部门名称
    */
    private String deptName;

    /**
    * 父级部门编号
    */
    private String prnDeptNo;

    /**
    * 部门所属地区编码
    */
    private String deptBeltoRegiCode;

    /**
    * 部门描述
    */
    private String deptDesc;

    /**
    * 创建人编号
    */
    private String createPsnNo;

    /**
    * 创建时间
    */
    private String createTime;

    /**
    * 更新人编号
    */
    private String updatePsnNo;

    /**
    * 更新时间
    */
    private String updateTime;

    /**
    * 创建人组织机构id
    */
    private String creorgId;

    /**
    * 是否营业部
    */
    private String isBrn;

    /**
    * 营业部地址
    */
    private String brnAddr;

    /**
    * 部门级别
    */
    private String deptLvl;

    /**
     * 地区编码描述
     */
    @TableField(exist = false)
    private String regionName;

    //字典
    @TableField(exist = false)
    private Map<String, Object> dictNameResult = new HashMap<String, Object>();

    public Map<String, Object> getDictNameResult() {
        return dictNameResult;
    }

    public void setDictNameResult(Map<String, Object> dictNameResult) {
        this.dictNameResult = dictNameResult;
    }

    public String[] buildIncludeField(){
        return new String[]{"isBrn","deptBeltoRegiCode"};
    }

    public String[] buildIncludeType(){
        return new String[]{"DG0104","DG0060"};
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPrnDeptNo() {
        return prnDeptNo;
    }

    public void setPrnDeptNo(String prnDeptNo) {
        this.prnDeptNo = prnDeptNo;
    }

    public String getDeptBeltoRegiCode() {
        return deptBeltoRegiCode;
    }

    public void setDeptBeltoRegiCode(String deptBeltoRegiCode) {
        this.deptBeltoRegiCode = deptBeltoRegiCode;
    }

    public String getDeptDesc() {
        return deptDesc;
    }

    public void setDeptDesc(String deptDesc) {
        this.deptDesc = deptDesc;
    }

    public String getCreatePsnNo() {
        return createPsnNo;
    }

    public void setCreatePsnNo(String createPsnNo) {
        this.createPsnNo = createPsnNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdatePsnNo() {
        return updatePsnNo;
    }

    public void setUpdatePsnNo(String updatePsnNo) {
        this.updatePsnNo = updatePsnNo;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreorgId() {
        return creorgId;
    }

    public void setCreorgId(String creorgId) {
        this.creorgId = creorgId;
    }

    public String getIsBrn() {
        return isBrn;
    }

    public void setIsBrn(String isBrn) {
        this.isBrn = isBrn;
    }

    public String getBrnAddr() {
        return brnAddr;
    }

    public void setBrnAddr(String brnAddr) {
        this.brnAddr = brnAddr;
    }

    public String getDeptLvl() {
        return deptLvl;
    }

    public void setDeptLvl(String deptLvl) {
        this.deptLvl = deptLvl;
    }
}